chrome.extension.sendRequest({localstorage: "badges"}, function(response) {
var pref = response.badges;
if ( pref == "enabled" ){
    var css = '#avatar-popup * .badges-area-holder,div[class="aw2 aw2-220"] .badges-container,.badgeimg{display:none!important;}';
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	heads[0].appendChild(node); 
        }}});